package edu.pku.sei.transformation.pattern;

import edu.pku.sei.mdabase.core.IDataType;
import edu.pku.sei.mdabase.core.INamedElement;
import edu.pku.sei.mdabase.core.ITypedElement;
import edu.pku.sei.mdabase.infrastructure.graph.GraphNode;
import edu.pku.sei.mdabase.infrastructure.metamodel.MetaClass;


public class TPatternNode extends GraphNode<TPatternEdge,TPatternGraph> implements INamedElement, ITypedElement{

	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	private MetaClass type;

	public MetaClass getType() {
		return type;
	}

	public void setType(IDataType type) {
		this.type = (MetaClass)type;
	}
	
	public String toString(){
		return getName()+"@"+getType();
	}

}
